@font-face {
  font-family: "Kayson";
  src: url(./100font/Lingxun-Serif-Bold.ttf);
}

* {
  margin: 0;
  padding: 0;
}

body {
  background-image: url(./imgs/792a4b6934fc491b81342206e3192e59.png);
  background-repeat: no-repeat;
  background-size: cover;

  // 我的标题
  h1 {
    position: absolute;
    top: 30px;
    z-index: 100;
    color: #fff;
    margin: 40px;
    font-family: "Kayson";
    font-size: 35px;
    filter: drop-shadow(0 0 10px white);
  }

  @keyframes run {
    to {
      transform: rotateX(360deg);
    }
  }

  // 我的内容
  .content {
    position: relative;
    box-sizing: border-box;
    padding: 15px 50px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    overflow-y: scroll;
    z-index: 100;
    position: absolute;
    left: 50%;
    top: 55%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 500px;
    border-radius: 3px;
    background-color: rgba(0, 0, 0, 0.25);

    // backdrop-filter: blur(10px);磨砂感
    // filter: contrast(1.6);      对比度
    // filter: drop-shadow(0 0 10px white);  内容阴影
    &:hover {
      transition: all 1s;
      box-shadow: 5px 5px 25px 1px lightblue;
    }
  }

  // 设置滚动边框样式：
  @keyframes rborder_top {
  }

  // 滚动条样式设置
  // 设置滚动条的整体样式
  // .content:hover::-webkit-scrollbar {
  //     position: absolute;
  //     left: -50px;
  //     height: 10px;
  //     width: 8px;
  // }

  // 删除掉导航栏的样式
  .content::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
  }

  /* 设置滚动条的拖动块 */
  .content::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: #d3dfe7;
    /* box-shadow: inset 0 0 5px rgba(0, 122, 204); */
  }

  /* 设置滚动条底层颜色 */
  .content::-webkit-scrollbar-track {
    border-radius: 10px;
    background: #a67d79;
    /* filter: drop-shadow(0 0 10px white); */
  }
}

body .content a {
  margin: 5px;
  font-size: 18px;
  display: inline-block;
  width: 100%;
  /* color: lightcyan; */
  color: lightcyan;
  height: 25px;
  /* line-height: 25px; */
  text-decoration: none;
}

body .content p {
  width: 100%;
  color: lightgoldenrodyellow;
  font-size: 25px;
  font-weight: 600;
}

/* 设置时钟的样式 */
body .times {
  margin-top: 50px;
  box-sizing: border-box;
  padding: 8px 10px;
  position: absolute;
  border-radius: 20px;
  border: 2px dotted #dfeef5;
  right: 30px;
  top: 20px;
  font-size: 30px;
  color: #d3dfe7;
  // background: #D9EFEA;
  background-color: rgba(0, 0, 0, 0.1);
  box-shadow: 5px 5px 25px 1px lightblue;
  // backdrop-filter: blur(10px);
  filter: contrast(1.6);
  font-family: "Kayson";

  // filter:contrast(1.2);
  // filter: drop-shadow(0 0 10px lightgreen);
  span {
    width: 120px;
    display: inline-block;
    color: #de5871;
    font: normal 600 24px "Kayson";
  }

  span:nth-of-type(2) {
    margin-left: -5px;
    margin-right: 3px;
    width: 25px;
    display: inline-block;
    color: #de5871;
    font: normal 600 24px "Kayson";
    transform-style: preserve-3d;
    animation: run 1s infinite;
  }

  span:nth-of-type(3) {
    margin-left: 5px;
    width: 25px;
  }
}

// 设置日历的样式
.dates {
  font-size: 24px;
  font-family: "Kayson";
  text-align: center;
  width: 300px;
  background-color: #5d9cec;
  position: absolute;
  right: 30px;
  top: 150px;
  border-radius: 20px;
  background-color: rgba(0, 0, 0, 0.1);
  box-shadow: 5px 5px 15px 1px lightcyan;
  backdrop-filter: blur(10px);
  filter: contrast(1.6);
  border: 2px dotted #dfeef5;
  color: #d3dfe7;

  p {
    margin: 30px;
    color: #d3dfe7;
    text-align: center;
    font-size: 40px;
  }

  span {
    color: #de5871;
    font: normal 600 28px "Kayson";
  }

  div {
    margin: 30px 0px;
    color: #de5871;
    font: normal 400 35px "Kayson";
  }
}

// 圣诞树
.tree {
  position: absolute;
  bottom: -200px;
  left: -120px;
  width: 500px;
  height: 700px;
  display: flex;
  justify-content: center;
  transform: scale(0.4, 0.6);
}

.star {
  width: 50px;
  height: 50px;
  position: absolute;
  background-color: rgb(236, 234, 167);
  z-index: 999;
  margin-bottom: 40px;
  clip-path: polygon(
    50% 0,
    65% 40%,
    100% 40%,
    72% 60%,
    85% 100%,
    50% 75%,
    15% 100%,
    28% 60%,
    0 40%,
    35% 40%
  );
}

.tree li {
  position: absolute;
  top: 25px;
  width: 2px;
  background: linear-gradient(rgba(46, 204, 113, 0), rgba(46, 204, 113, 0.25));
  transform-origin: 50% 0;
  animation: swing 4s ease-in-out infinite;
  height: calc(var(--i) * 4px);
  animation-delay: calc(var(--i) * -0.23s);
}

@keyframes swing {
  0%,
  100% {
    transform: rotate(-30deg);
  }

  5%,
  45% {
    opacity: 0.25;
  }

  0%,
  50%,
  100% {
    opacity: 1;
  }

  50% {
    transform: rotate(30deg);
  }
}

.tree li::before {
  content: "";
  position: absolute;
  left: -1px;
  bottom: 1px;
  width: 3px;
  height: 3px;
}

.tree li:nth-child(4n)::before {
  background-color: #d8334a;
}

.tree li:nth-child(4n + 1)::before {
  background-color: #ffce54;
}

.tree li:nth-child(4n + 2)::before {
  background-color: #2ecc71;
}

.tree li:nth-child(4n + 3)::before {
  background-color: #5d9cec;
}

/*# sourceMappingURL=index.css.map */
